<!--制度收文操作通用界面-->
<div class="OutDiv">
  <div class="addPage">
    <div class="backDiv">
      <span>{{pageName}}</span>
      <span class="fl-r operaFont" (click)="back(false)">
        返回上一级<i class="fa fa-reply m-l-sm"></i>
      </span>
    </div>
    <div class="formdiv">
      <div nz-row>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              文件号
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.number}}
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              制度名称
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.name}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
      <div nz-row>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              制度类型
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.caseType}}
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              执行部门
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.deptNameStr}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
      <div nz-row>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              作用对象
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.actionTarget}}
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              制度状态
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{stateObj[materialObj?.state]}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
      <div nz-row>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              制度生效日期
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.effectiveDate | date: 'yyyy-MM-dd'}}
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              查看有效日期
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              <span *ngIf="materialObj?.noLimitViewDate">不限</span>
              <span *ngIf="!materialObj?.noLimitViewDate">
                  {{materialObj?.viewStartDate | date: 'yyyy-MM-dd'}}至{{materialObj?.viewEndDate | date: 'yyyy-MM-dd'}}
                </span>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
      <div nz-row>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              发布人
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.publisherName}}
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              发布部门
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.publishDeptName}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
      <div nz-row>
        <div nz-col nzSpan="12">
          <nz-form-item>
            <nz-form-label [nzSm]="6">
              发布日期
            </nz-form-label>
            <nz-form-control [nzSm]="18" [nzXs]="10">
              {{materialObj?.publishDate}}
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
      <div nz-row>
        <div nz-col nzSpan="24">
          <nz-form-item>
            <nz-form-label [nzSm]="3">
              附件
            </nz-form-label>
            <nz-form-control [nzSm]="21" [nzXs]="15">
              <div *ngIf="!materialObj?.source">—</div>
              <div class="pdfBox" *ngIf="materialObj?.source">
                <ng2-pdfjs-viewer [pdfSrc]="materialObj?.source"
                                  [print] = "false"
                                  #pdfViewer
                                  [page]="1"
                                  [download] = "false"
                                  [fullScreen] = "false"
                                  [openFile] = "false"
                                  [viewBookmark] = "false"
                                  [viewerId]="materialObj?.sourceList[0].id"
                                  (onDocumentLoad)="pdfLoad($event)"
                ></ng2-pdfjs-viewer>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

    </div>


    <div class="opreatdiv" *ngIf="opreatType != 3 && materialObj?.feedbackList && materialObj?.feedbackList.length > 0">
      <div class="opreatdiv_row">
        执行反馈
      </div>
      <div class="formdiv_sup" *ngFor="let fk of materialObj?.feedbackList;">
        <div class="formdiv">
          <div nz-row>
            <div nz-col nzSpan="12">
              <nz-form-item>
                <nz-form-label [nzSm]="6">
                  反馈人
                </nz-form-label>
                <nz-form-control [nzSm]="18" [nzXs]="10">
                  {{fk.feedbackUserName}}
                </nz-form-control>
              </nz-form-item>
            </div>
            <div nz-col nzSpan="12">
              <nz-form-item>
                <nz-form-label [nzSm]="6">
                  反馈日期
                </nz-form-label>
                <nz-form-control [nzSm]="18" [nzXs]="10">
                  {{fk.feedbackDate}}
                </nz-form-control>
              </nz-form-item>
            </div>
          </div>
          <div nz-row>
            <div nz-col nzSpan="12">
              <nz-form-item>
                <nz-form-label [nzSm]="6">
                  是否执行
                </nz-form-label>
                <nz-form-control [nzSm]="18" [nzXs]="10">
                  {{fk.isExecute == 1?'是':'否'}}
                </nz-form-control>
              </nz-form-item>
            </div>
          </div>
          <div nz-row>
            <div nz-col nzSpan="24">
              <nz-form-item>
                <nz-form-label [nzSm]="3" [nzXs]="4">
                  执行情况记录
                </nz-form-label>
                <nz-form-control [nzSm]="21" [nzXs]="15">
                  {{fk.content}}
                </nz-form-control>
              </nz-form-item>
            </div>
          </div>
          <div nz-row>
            <div nz-col nzSpan="12">
              <nz-form-item>
                <nz-form-label [nzSm]="6">
                  反馈状态
                </nz-form-label>
                <nz-form-control [nzSm]="18" [nzXs]="10">
                  <span *ngIf="fk.feedbackState == 0">待反馈</span>
                  <span *ngIf="fk.feedbackState == 5">审核中</span>
                  <span *ngIf="fk.feedbackState == 15">未通过</span>
                  <span *ngIf="fk.feedbackState == 10">已反馈</span>
                </nz-form-control>
              </nz-form-item>
            </div>
            <div nz-col nzSpan="12">
              <nz-form-item>
                <nz-form-label [nzSm]="6">
                  审批人
                </nz-form-label>
                <nz-form-control [nzSm]="18" [nzXs]="10">
                  {{fk.checkerName}}
                </nz-form-control>
              </nz-form-item>
            </div>
          </div>
          <div nz-row *ngIf="fk.feedbackState == 15">
            <div nz-col nzSpan="24">
              <nz-form-item>
                <nz-form-label [nzSm]="3" [nzXs]="4">
                  驳回理由
                </nz-form-label>
                <nz-form-control [nzSm]="21" [nzXs]="15">
                  {{fk.checkContent}}
                </nz-form-control>
              </nz-form-item>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>
</div>
